package com.situ.crm.quartz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.situ.crm.service.ICustomerLossService;
/**
 * 展示客户流失
 */
@Component
public class FindCustomerLossJob {
	@Autowired
	private ICustomerLossService customerLossService;
	
	//0/30 * * * * ?每隔30秒触发
	// 0 0 1 1 * ?
	@Scheduled(cron="0 0 1 1 * ?")//每月1号凌晨
	public void work() {
		System.out.println("FindCustomerLossJob.work()");
		customerLossService.checkCustomerLoss();
	}
}
